package com.liangsui.cmall.product.feign.fallback;

import com.liangsui.cmall.product.feign.SeckillFeignService;
import com.liangsui.common.exception.BizCodeEnume;
import com.liangsui.common.utils.R;
import org.springframework.stereotype.Component;

/**
 * SeckillServiceFallBack
 *
 * @author zhangjiawei
 * @email 1533167396@qq.com
 * @date 2022/8/27 15:59
 */
@Component
public class SeckillServiceFallBack implements SeckillFeignService {
    @Override
    public R getSkuSeckillInfo(Long skuId) {
        return R.error(BizCodeEnume.TO_MANY_REQUEST.getCode(), BizCodeEnume.TO_MANY_REQUEST.getMsg());
    }
}
